package com.taobaolite.order;

import org.springframework.http.HttpStatus;
import org.springframework.web.server.ResponseStatusException;

class PutOrderException extends ResponseStatusException {


    public PutOrderException( OrderStatus orderStatus, Short action) {
        super(HttpStatus.BAD_REQUEST,
                "Status: "+
                        orderStatus +
                        " can not do action " +
                        action +
                        "."
        );
    }
}